FROM paddlepaddle/paddle:2.2.0-gpu-cuda10.2-cudnn7
MAINTAINER author "https://github.com/m986883511"
WORKDIR /m986883511
EXPOSE 8000
ENV BIND_IP 0.0.0.0
ENV BIND_PORT 8000
ENV INPUT_DIR /input
ENV OUTPUT_DIR /output

COPY docker/requirements.txt .
RUN pip3 install -r requirements.txt --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple/

ADD docker/backend.tar /extra-packages
COPY . .
RUN rm -rf docker
CMD ["python3", "main.py"]